<!DOCTYPE html>
<html >
<head>
    <meta charset="utf-8">
    <title>Vue 绑定</title>
    <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
</head>
<body>
<div id="app">
    <img :src="imgUrl" :alt="name">
    <h1 :class="col">{{ name }}</h1>
</div>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {
            name: "菜鸟教程",
            imgUrl: "http://bohandev.oss-cn-beijing.aliyuncs.com/upload/20190916/3c22bfe5c78c4584beb91b656048f143.jpg",
            col: 'red'
        }
    })
</script>
</body>
</html>
